import axios from '@/libs/api.request'

/**
 * 添加权限
 */
export const addRightApi = (data)=>{
  return axios.request({
    url:'/ims-admin/rights/add',
    method:'post',
    data
  })
}

/**
 * 删除权限
 */
export const deleteRightApi = (systemId)=>{
  return axios.request({
    url:'/ims-admin/rights/delete/'+systemId,
    method:'get',
  })
}
/**
 * 修改权限
 */
export const modifyRightApi = (data)=>{
  return axios.request({
    url:'/ims-admin/rights/modify',
    method:'post',
    data
  })
}

/**
 * 权限列表
 */
export const queryRightApi = (data)=>{
  return axios.request({
    url:'/ims-admin/rights/query',
    method:'post',
    data
  })
}